<!DOCTYPE html>
<html>
	<head>

		<title>报告查询</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<link rel="stylesheet" type="text/css" href="style/style.css" />
		
		<script type="text/javascript" src="js/jquery-1.8.1.min.js"></script>
		<script src="js/angular.min.1.4.6.js"></script> 
		<script type="text/javascript" src="js/index.js"></script>
		<script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
		<script type="text/javascript" src="layer/layer.js"></script>
		<style>
		#fujian{ margin: 12px 0; padding: 6px 6px; background: #f9f9f9;}
		#fujian a{display:inline-block; padding: 5px 0;}
		#fujian a span{ color:#f00;}
		</style>
	</head>

	<body   ng-app="indexApp">
		<div class="conter ma">
			<div class="header" ng-include="'header.html'" ></div>
			<div class="nybanner">
				<img src="images/nybanner.jpg" width="997" height="198" /></div>
			<div class="side">
				<div class="stitle">
					客户服务<span> </span></div>
				<div class="conts clicksub">
					<dl>

						<dt class='on'><a href="procedure.htm" >服务流程</a></dt>

						<dt class='on'><a href="report.htm" >报告查询</a></dt>

						<dt class='on'><a href="data.htm" >公告</a></dt>
						
						<dt class='on'><a href="download.htm" >资料下载</a></dt>

					</dl>
				</div>

				<div class="side_c">
					<p>
						<a href="mainBusiness.htm"><img src="images/sc1.jpg" width="226" height="73" /></a>
					</p>
					<p>
						<a href="auth.htm"><img src="images/sc2.jpg" width="226" height="74" /></a>
					</p>
					<p>
						<a href="train.htm"><img src="images/sc3.jpg" width="226" height="78" /></a>
					</p>
				</div>
			</div>
			<div class="mian">
				<div class="mtitle">
					报告查询<span>您的当前位置：<a href="home.htm" >主页</a> > <a href="report.htm" >报告查询</a> > 
                </span>
				</div>
				<div class="miancont">
					<div class="nybd">
        <div class="nbtitle">报告状态查询</div>
        <div class="nybdcont">
          <ul>
            <li><span>报告编号：</span>
              <input type="text" class="w212" id="word1">
            </li>
            <li><span>查询密码：</span>
              <input type="text" class="w212" id="word2">
            </li>
            <li><span>验证码：</span>
              <input type="text" class="w90" id="yzmcode">
              <span>
            <img id="imgCode" title="换一个" onclick="changeVerifyCode();" src="validator/validator.do" style="height:22px;width:63px;border-width:0px;cursor: pointer;" /></span></li>
            <li class="an"><span></span>
              <input type="button" value=" " class="tjan" onclick="doSearch();">
              <input type="reset" value=" " class="czan">
            </li>
          </ul>
            <script type="text/javascript">
            function GetQueryString(name){
                var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
                var r = window.location.search.substr(1).match(reg);
                if(r!=null)return  decodeURI(r[2]); return null;
           }
           
            function changeVerifyCode(){
				$("#imgCode").attr("src","validator/validator.do?"+Math.random());
			}
			function doSearch() {
				$.ajax({
		            type : 'post',
		            url : '/isLogin.do',
		            success : function(data) {
		                if (data.status == 10001) {
		                	var word1 = $('#word1').val();
		    				var word2 = $('#word2').val();
		    				var txtval = $('#yzmcode').val();
		    				
		    				if(word1 == "" || word2 == "") {
		    					alert("请输入报告编号和报告验证码!");
		    				} else if(txtval == "") {
		    					alert("请输入验证码!");
		    				} else {
		    					$.ajax({
		    				        type : "post", 
		    				        crossDomain: true,
		    				        url : "information/getReport" ,
		    				      	data : {
		    					        "reportNum":word1,
		    					        "reportCode":word2,
		    					        "code":txtval,
		    					    },
		    				        success : function(data){
		    				        	if(data.status == 10001){
		    				        		layer.msg('查询成功！');
		    				        		$("#fujian p").remove();
		    				        		var text = '<p>查询结果：<a download="http://www.nbeasytest.com'+data.data.file+'" href="http://www.nbeasytest.com'+data.data.file+'" >'+data.data.fileName+'  <span>点击下载</span></a></p>'
		    				        		$("#fujian").css("display","block").append(text);
		    				        	}else{
		    				        		$("#fujian p").remove();
		    				        		layer.msg(data.msg);
		    				        	}
		    				        },
		    					});
		    				}
		                } else {
		                	layer.msg('请先登录！');
		                }
		            }
		        });
				
			}
				$(".czan").click(function(){
					$("#word1").val("");
					$("#word2").val("");
					$("#yzmcode").val("");
				});
            </script>

        </div>
      </div>
      <div id="fujian" style="display:none">
      
      	
      </div>
      <div class="nybasm">
        <h2>查询范围：</h2>
        1:本系统仅供查询我公司所出具的报告，具体报告信息以纸质报告为准；<br>
        2:查询信息（报告编号、查询密码、验证码）必须填写完整方可进行报告的查询；<br>
        3:如无法正常登陆查询；<br>
        4:本查询结果的最终解释。</div>
				</div>
			</div>
			<div class="clear">
			</div>

			<div class="footer"ng-include="'footer.html'" ></div>

		</div>
		<script type="text/javascript">
		angular.module('indexApp', []).controller('indexContr', function($scope) {
			$(".menu ul li.dq").each(function() {
				$(this).hover(function() {

					$(this).find(".submenu").stop(false, true).slideDown();
				}, function() {

					$(this).find(".submenu").stop(false, true).slideUp();

				});
			});
			function menuon(id) {
				$(".menu ul li.dq a").each(function() {
					$(this).removeClass("on");
				});
				$(".menu ul li.dq").eq(id - 1).children("a").addClass("on");
			}
			$(".menu ul li .submenu .submenubg a:last-child").css("border-bottom", "none");
			menuon(3);
		});
		</script>

	</body>

</html>